# 目标名：依赖文件
# 命令1
# 命令2

objects := main.o
objects += hello.o

.PHONY: clean

main: $(objects)
	gcc $(objects) -o main

main.o: main.c hello.h
	gcc -c main.c -o main.o

hello.o: hello.c
	gcc -c hello.c -o hello.o

clean:
	rm main $(objects)